//
//  BaseTableViewController.swift
//  SineWeibo
//
//  Created by keshuaiguo on 16/1/14.
//  Copyright © 2016年 keshuaiguo. All rights reserved.
//

import UIKit

class BaseTableViewController: UITableViewController {

    //定义用户登录的标示
    var userLogin = false
    
    //loadView
    override func loadView() {
        if userLogin {
        
            super.loadView()
        } else {
            //自定义访客视图
            let v = VisitorLoginView()
            view = v
        
        }
    }
    
    override func viewDidLoad() {
        super.viewDidLoad()

          }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }

    // MARK: - Table view data source

    override func numberOfSectionsInTableView(tableView: UITableView) -> Int {
        // #warning Incomplete implementation, return the number of sections
        return 0
    }

    override func tableView(tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
        // #warning Incomplete implementation, return the number of rows
        return 0
    }

  }
